#!/bin/bash
tarstring=""
echo "请输入要查找的字符串！"
read tarstring
echo "-------------------------所查找字符串的匹配结果为------------------------"
echo "[相对路径/文件名][字符串所在行][字符串内容]"
grep -rn $tarstring .
